package com.hzsai.mininotecaller.service.Impl;

import com.hzsai.mininotecaller.common.ResponseRe;
import com.hzsai.mininotecaller.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.client.RestTemplate;

/**
 * @author: hzsai
 * @date : 2020/3/4
 * usage:
 **/
public class UserServiceImpl implements UserService {

    @Autowired
    private DiscoveryClient discoveryClient;

    private RestTemplate restTemplate = new RestTemplate();

    private static final String URI = "http://mininote.demo.svc.";

    @Override
    public ResponseRe addUser() {
        discoveryClient.getInstances("mininote.demo");
        return null;
    }
}
